﻿@{
    Layout = null;
    CategoryInfo objCategoryInfo = ViewBag.CategoryInfo as CategoryInfo;
}
@model List<ArticleResultInfo>

<div class="module module-margin">
    <div class="mod-title-group">
        <h2 class="mod-title"><a href="/news/articlelist/@objCategoryInfo.CategoryId">@objCategoryInfo.CategoryName</a></h2>
    </div>
    @if (Model.IsNoNull())
    {
        string[] articleTypes = null;
        <div>
            <ul class="mod-graphic-list2">
                @foreach (ArticleResultInfo objArticleResultInfo in Model)
                {
                    articleTypes = objArticleResultInfo.ArticleInfo.ArticleType.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                    <li>
                        <a href="@objArticleResultInfo.TargetUrl" class="m-lk">
                            <span class="img-show">
                                <img onload="javascript:TOUCH.util.resizeImage(this,80,60)" src="@objArticleResultInfo.ArticleInfo.MinPic" alt="@objArticleResultInfo.ArticleInfo.ArticleTitle" width="80" height="60">
                                @if (articleTypes.IsNoNull())
                                {
                                    if (articleTypes.Contains("1"))
                                    {
                                        <em class="tag-total">图集</em>
                                    }
                                    else if (articleTypes.Contains("2"))
                                    {
                                        <i class="icon-play"></i>
                                    }
                                }
                            </span>
                            <div class="detail">
                                <h3>@objArticleResultInfo.ArticleInfo.ArticleTitle</h3>
                                <div class="u-txt">
                                    <time>@objArticleResultInfo.ArticleInfo.PublishDate.ToString("yyyy-MM-dd")</time>
                                    <span class="resource">@objArticleResultInfo.ArticleInfo.ArticleAuthor</span>
                                </div>
                            </div>
                        </a>
                    </li>
                }
            </ul>





            <a href="/news/articlelist/@objCategoryInfo.CategoryId" class="btn-gray" onclick="">查看更多</a>
        </div>
    }
</div>